package com.rambo.androidnews.fraction;

import com.rambo.androidnews.itemprovider.ArticleItemProvider;
import com.rambo.baselib.ResourceTable;
import com.rambo.baselib.bean.LoadDataConfig;
import com.rambo.baselib.fraction.BaseFraction;
import com.rambo.baselib.fraction.BaseRefreshListFraction;
import com.rambo.baselib.mvp.BasePresenter;
import com.rambo.baselib.util.Loading;
import ohos.agp.components.BaseItemProvider;
import ohos.app.Context;

/**
 * 玩Android 网站的问答tab
 */
public class WanAdQaFraction extends BaseRefreshListFraction {
    ArticleItemProvider articleItemProvider;

    public WanAdQaFraction(Context context) {
        super(context);
    }


    @Override
    protected BaseItemProvider getItemProvider() {
        articleItemProvider= new ArticleItemProvider(this,null);
        return articleItemProvider;
    }

    @Override
    protected void loadData(LoadDataConfig refreshConfig) {
//        loading.updateLoadState(Loading.LoadingState.LOADING);
        loading.updateLoadState(Loading.LoadingState.EMPTY);
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}
